package com.jwaoo.mobile.view.explore.model.db;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import com.jwaoo.mobile.view.explore.bean.UserBean;
import java.util.List;

/**
 * Created by jwaoo on 2017/8/12.
 */
@Dao
public interface DBUserDao {
    @Query("SELECT * FROM UserBean")
    List<UserBean> getNearbyList();

    @Insert
    void insertNearbyList(List<UserBean> list);

    @Delete
    void deleteAllNearby(List<UserBean> list);
}
